package com.dykj.fireFighting.api.base.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


/**
 * @Description 数据字典类型
 * @Author hxb
 * @Date 2021-06-19 15:12:14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "数据字典类型")
@TableName("t_sys_directory_type")
public class SysDirectoryType implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键ID")
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
	private String name;
	@TableField("key_code")
	private String keyCode;
	/**
	 * 父id
	 */
	@ApiModelProperty(value = "父id")
	@TableField("parent_key_code")
	private String parentKeyCode;
	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述")
	private String description;
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private Integer sort;
	/**
	 * 未删0已删1
	 */
	@ApiModelProperty(value = "未删0已删1")
	@TableField("is_del")
	private Integer isDel;
	@TableField("create_user")
	private String createUser;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	@TableField("create_time")
	private Date createTime;
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")
	@TableField("update_time")
	private Date updateTime;
	@TableField("update_user")
	private String updateUser;

}
